<include file="./APP/Home/View/Public/header.html" xmlns="http://www.w3.org/1999/html"/>
<style type="text/css">
	.main input.form-control { width: 260px; display: inline; }
	.help-block { font-size: 12px; color: #666666; margin-left: 90px; }
</style>
<div class="h1_tit" style="margin-top:20px;">修改密码</div>
<div class="main">
	<div style="padding:20px 45px;">
		<div class="input_list">
			<form method="post" class="ajaxForm" action="{:U('PersonalSet/password')}">
				<ul>
					<li>
						<label>原密码：</label>
						<input type="password" id="old_password" name="old_password" class="form-control" value="" placeholder="原密码"><br>
					</li>
					<li>
						<label>新密码：</label>
						<input type="password" id="password" name="password" class="form-control" value="" placeholder="新密码"><br>
						<span class="help-block">新密码须至少6位</span></li>
					<li>
						<label>确认密码：</label>
						<input type="password" id="re_password" name="re_password" class="form-control" value="" placeholder="确认新密码"><br>
					</li>
					<li style="margin-left:90px">
						<input type="submit" class="btn btn-primary" value="保存">&nbsp;
						<input type="button" class="btn btn-default" value="取消" onclick="history.back(-1);">
					</li>
				</ul>
			</form>
		</div>
	</div>
</div>
<script type="text/javascript">
	seajs.use(['$','form-ajax','bootbox'],function(){
		var ajaxFrom = $('.ajaxForm');
		ajaxFrom.ajaxForm({
			dataType:'json',
			success:function(data){
				if(data.status > 0){
					bootbox.alert(data.info,function(){
						window.location.href = data.url;
						return false;
					});
				}else{
					bootbox.alert({
						message:data.info,
						title: "提示信息"
					});
					return false;
				}
			}
		})
	});
</script>
<include file="./APP/Home/View/Public/footer.html"/>